xend: Remember bootable flag for vbds in xenstore
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 9 Dec 2008 12:45:45 +0000 (12:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 9 Dec 2008 12:45:45 +0000 (12:45 +0000)
commitb90edb337d11a3e599e170b0835fa31d457aafce
treeb4b995497c6c7f65253540f832d903a68c367c3b
parentce4d300de0f5dd0ff1762e26bed8c008cf784a49
xend: Remember bootable flag for vbds in xenstore

When xend is restarted, bootable flags of all disk devices are lost
and then the first disk is marked as bootable by a "compatibility
hack". When a guest domain is created with a mixture of several vbd
and tap devices, the compatibility hack may fail to choose the right
bootable device. Thus preventing the guest to be restarted. This patch
fixes this behavior by remembering bootable flag for each disk device
in xenstore database.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/server/blkif.py